
public class AccountImpl implements Account{
	
	double balance = 0;
	String name = "";
	int id = -1;
	
	
	public AccountImpl(String name, int id){
		this.name = name;
		this.id = id;
	}
	
	public int getId(){
		return id;
	}
	
	public String getName() {
		return name;
	}
	
	public double getBalance() {
		return balance;
	}

	public void deposit(double amount) {
		balance = balance + amount;
	}
	
	public void withdraw(double amount) {
		balance = balance - amount;
	}
}
